import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/oms/bookOrder/list',
    method: 'get',
    params: params
  })
}

export function expressAdd(data){
  return request({
    url: '/oms/bookOrder/express/add',
    method: 'post',
    data:data
  })
}

export function closeOrder(params) {
  return request({
    url: '/order/update/close',
    method: 'post',
    params: params
  })
}

export function deleteOrder(params) {
  return request({
    url: '/order/delete',
    method: 'post',
    params: params
  })
}

export function deliveryOrder(data) {
  return request({
    url: '/order/update/delivery',
    method: 'post',
    data: data
  });
}

export function getOrderDetail(id) {
  return request({
    url: '/oms/bookOrder/admin/' + id,
    method: 'get'
  });
}


